package com.woniu.service.impl;

import com.woniu.dao.PropertyManageMapper;
import com.woniu.pojo.PropertyManage;
import com.woniu.service.ProperManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.Date;
import java.util.List;

@Service
public class PropertyManageServiceImpl implements ProperManageService {

    @Autowired
    private PropertyManageMapper pmMapper;

    @Override
    public List<PropertyManage> findListByPage(Integer currentPage, Integer pageSize) {
        List<PropertyManage> list=pmMapper.findByPage(currentPage,pageSize);
        return list;
    }

    @Override
    public void editStatusById(Integer id, Date passTime) {
        pmMapper.editStatusById(id,passTime);
    }

    @Override
    public List<PropertyManage> findList(String userName, Integer status) {
        List<PropertyManage> list=pmMapper.findList(userName,status);
        return list;
    }

    @Override
    public void refuse(Integer id, Date refuseTime) {
        pmMapper.refuse(id,refuseTime);
    }


}
